<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>文档管理</title>
    {include file="/admin/head"/}
</head>
<body leftmargin="8" topmargin="8" background='/static/images/allbg.gif'>
<div class="x-nav">
        <span class="layui-breadcrumb">
          <a href="">Index</a>
          <a href="">Demonstrate</a>
          <a>
            <cite>Navigation</cite></a>
        </span>
    <a class="layui-btn layui-btn-primary layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" href="javascript:location.replace(location.href);" title="刷新">
        <i class="layui-icon" style="line-height:38px">ဂ</i></a>
</div>
<div class="x-body">
    <div class="layui-row">
        <form class="layui-form layui-col-md12 x-so">
            <!--<input type="text" name="t1"  placeholder="请输入法兰标准" autocomplete="off" class="layui-input">-->
            <!--<button class="layui-btn"  lay-submit="" lay-filter="sreach"><i class="layui-icon">&#xe615;</i></button>-->
        </form>
    </div>
    <xblock>
        <!--<button class="layui-btn layui-btn-danger" onclick="delAll()"><i class="layui-icon"></i>批量Delete</button>-->
        <!--<button class="layui-btn" onclick="x_admin_show('Add司机','/admin/siji?id=0')"><i class="layui-icon"></i>Add</button>-->
        <button class="layui-btn" onclick="x_admin_show('Add导航','/admin/image?id=0&lang={$lang}')">
            <i class="layui-icon"></i>Add
        </button>
        <!--<span class="x-right" style="line-height:40px">There are a total of pieces of data</span>-->
    </xblock>
    <table class="layui-table">
        <thead>
        <tr>
            <th>Images</th>
            <th>Title</th>
            <th>Describe</th>
            <th>Type</th>
            <th>Option</th>
        </tr>
        </thead>
        <tbody>
        {volist name="list" id="value"}
        <tr>
            <td><img src="{$value.src}"></td>
            <td>{$value.title}</td>
            <td>{$value.info}</td>
            <td>{$value.status_text}</td>
            <td class="td-manage">
                <a title="Save"  onclick="x_admin_show('编辑','/admin/nav/info?id={$value.id}&lang={$lang}')" href="javascript:;">
                    Save
                </a>
                <a href="/index?path={$value.url}" target="_blank">
                    查看
                </a>
                <a title="Delete" onclick="member_del(this,'{$value.id}')" href="javascript:;">
                    Delete
                </a>
            </td>
        </tr>
        {/volist}
        </tbody>
    </table>
</div>
<script>
    /*Delete*/
    function member_del(obj,id){
        layer.confirm('Confirm要Delete吗？',function(index){
            //发异步Delete数据
            $(obj).parents("tr").remove();
            post('/sys/nav/delete?id' + id,{},'message');
            layer.msg('已Delete!',{icon:1,time:1000});
        });
    }
    function message(){
        location.reload();
    }
</script>
</body>
</html>